/*
 * SGBDConsultation.java
 *
 */

package com.miage.edt.base;

import com.miage.edt.bean.*;
import com.miage.util.sgbd.*;
import java.sql.*;

public class SGBDSuppression extends SGBDAccesseur implements SGBDConstantes {
    
    /** Creates a new instance of SGBDConsultation */
    public SGBDSuppression() {
    }
    
    public static int annulerSeance(Seance Sea){
        int sea_id = Sea.getIdSeance();     
 
        String strQuery = "UPDATE SEANCE set SEA_STATUT ='A' where SEA_SEANCE_ID ="+sea_id;
       return update(strQuery);
    }
	
	 public static int supprimerIntervenant(int idIntervenant)
	
	{
        String strQuery = "DELETE FROM INTERVENANT where per_id ="+idIntervenant;
		return delete(strQuery);
	}
    
}
